﻿Ext.define('Twi.QuickWin', {
    extend: 'Ext.window.Window',
    alias: 'widget.twiQuickWin',
    frame: false,
    modal:true,
    initComponent: function () {
        if (this.items.length == 0) {
            this.html = "";
        }
        var btnSave = (typeof this.btnSave == "function") ? btnSave : Ext.emptyFn;
        var btnCancel = (typeof this.btnCancel == "function") ? btnCancel : function () {
            this.up('window').close();
        }
        this.buttons = [{
            text: '保存',
            itemId: 'btnSave',
            handler: btnSave
        }, {
            text: '取消',
            itemId: 'btnCancel',
            handler: btnCancel
        }];
        this.callParent(arguments);
    }
});
